var __extends =
    (this && this.__extends) ||
    (function () {
      var t = function (e, i) {
        return (t =
          Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array &&
            function (t, e) {
              t.__proto__ = e;
            }) ||
          function (t, e) {
            for (var i in e)
              Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
          })(e, i);
      };
      return function (e, i) {
        function n() {
          this.constructor = e;
        }
        if ("function" != typeof i && null !== i)
          throw new TypeError(
            "Class extends value " + String(i) + " is not a constructor or null"
          );
        t(e, i),
          (e.prototype =
            null === i
              ? Object.create(i)
              : ((n.prototype = i.prototype), new n()));
      };
    })(),
  MoveMapPageDialog = (function (t) {
    function e() {
      return t.call(this) || this;
    }
    return (
      __extends(e, t),
      (e.showMoveMapDialog = function () {
        null == this.moveMap &&
          ((this.moveMap = new e()), (this.moveMap.zOrder = 1100)),
          this.moveMap.popup(),
          this.moveMap.setupButtonOpt();
      }),
      (e.prototype.setupButtonOpt = function () {
        this.btn_map_wei1.on(Laya.Event.CLICK, this, this.onMapDidClickWeiFn),
          this.btn_map_wei2.on(Laya.Event.CLICK, this, this.onMapDidClickWeiFn),
          this.btn_map_wei3.on(Laya.Event.CLICK, this, this.onMapDidClickWeiFn),
          this.btn_map_shu1.on(Laya.Event.CLICK, this, this.onMapDidClickWeiFn),
          this.btn_map_shu2.on(Laya.Event.CLICK, this, this.onMapDidClickWeiFn),
          this.btn_map_wu1.on(Laya.Event.CLICK, this, this.onMapDidClickWeiFn),
          this.btn_map_wu2.on(Laya.Event.CLICK, this, this.onMapDidClickWeiFn);
      }),
      (e.prototype.onMapDidClickWeiFn = function (t) {
        "item_map_wei" == t.target.name
          ? ((this.btn_map_WeiP.selected = !0),
            Laya.timer.once(150, this, function () {
              (this.btn_map_WeiP.selected = !1),
                MapCityAreaView.openMapView(100),
                this.close();
            }))
          : "item_map_shu" == t.target.name
          ? ((this.btn_map_shuP.selected = !0),
            Laya.timer.once(150, this, function () {
              (this.btn_map_shuP.selected = !1),
                MapCityAreaView.openMapView(19),
                this.close();
            }))
          : "item_map_wu" == t.target.name &&
            ((this.btn_map_WuP.selected = !0),
            Laya.timer.once(150, this, function () {
              (this.btn_map_WuP.selected = !1),
                MapCityAreaView.openMapView(43),
                this.close();
            }));
      }),
      (e.close = function () {
        this.moveMap && this.moveMap.close();
      }),
      e
    );
  })(ui.TabBarItemController.MoveMapPageDialogUI);
